<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h2>作用域面试题</h2>
</body>
<script>
       function test(a,b){

          //  console.log('1:',a);
            // console.log('2:',b);
            // var b=234;
            // console.log('3:',b);
            // a=123;
            // console.log('4:',a);
            
        
          //   console.log('1:',a);
             a()
              function a() {
                console.log(1111)
              }
             var a=function(){
                console.log(222)
             }
             console.log('1:',a());
            // console.log('5:',a);
            // console.log('6:',b);

        }
        test(1)
</script>
</html>